#ifndef TITLESCREENSTATE_H
#define TITLESCREENSTATE_H

#include "Singleton.h"
#include "EventHandler.h"
#include "EventPoller.h"
#include "GameState.h"

#include <D3DX10.h>

class TitleScreenState : public Uncopyable, public GameState, public EventHandler
{
	TitleScreenState();
	friend class Singleton<TitleScreenState>;
public:
	void Update();
	void Draw();
	virtual void OnActivated();
	virtual void OnDeactivated();
	
	virtual void OnKeyDownEvent(const WPARAM& event);
	virtual void OnKeyUpEvent(const WPARAM& event);
	virtual void OnMouseMotionEvent(const LPARAM& event);
	virtual void OnMouseButtonDownEvent(const MSG& event);
	virtual void OnMouseButtonUpEvent(const MSG& event);

private:
	D3DXVECTOR2 m_screenSize;
	D3DXVECTOR2 m_mousePos;
	D3DXVECTOR2 m_convertedMousePos;
	bool m_mouseDown;
};

typedef Singleton<TitleScreenState> TheTitleScreenState;

#endif // TITLESCREENSTATE_H